package net.adetech.crj.entity;


import java.io.Serializable;

public class Remind implements Serializable {
    private long id;
    private String code;
    private String type;
    private String condition;
    private String content;
    private String title;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getCondition() {
        return condition;
    }

    public void setCondition(String condition) {
        this.condition = condition;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTitleHtml()
    {
        if (this.title!=null)
        {
            String result = this.title.replaceAll(" ","&nbsp;").replaceAll("(\r\n|\r|\n)","<br />");
            return result;
        }
        return this.title;    }

    public String getContentHtml()
    {
        if (this.content!=null)
        {
            String result =  this.content.replaceAll(" ","&nbsp;").replaceAll("(\r\n|\r|\n)","<br />");
            return result;
        }

        return this.content;
    }


}
